package org.yaac.client.service;

import java.util.Collection;
import java.util.List;

import org.yaac.shared.YaacException;
import org.yaac.shared.blob.BlobInfoDTO;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * @author Max Zhu (thebbsky@gmail.com)
 *
 */
@RemoteServiceRelativePath("GWT.rpc")
public interface BlobService extends RemoteService {

	/**
	 * @param filter
	 * @return
	 * @throws YaacException
	 */
	List<BlobInfoDTO> load(String filter) throws YaacException;

	/**
	 * @param blobKeys
	 * @throws YaacException
	 */
	void delete(Collection<String> blobKeys) throws YaacException;
}
